# -*- coding: utf-8 -*-
# @Time: 2021/8/16 14:13
# @File: meituan-001.py
# @DESC:
import re
def solution(str):

    pattern = '^[a-zA-Z][a-zA-Z0-9]+[a-zA-Z0-9]$'
    match = re.match(pattern,str)
    if match is None:
        return 'Wrong'
    pattern = '\\d+'
    match = re.findall(pattern, str)
    if len(match)==0:
        return 'Wrong'
    pattern = '[A-Z]+'
    match = re.findall(pattern, str)
    if len(match)==0:
        return 'Wrong'

    return 'Accept'

print(solution("zZ6.ut"))


